//
//  UIFont+ZMExtension.swift
//  ZMBaseModule
//
//  Created by Rowling on 2020/7/10.
//  Copyright © 2020 Rowling. All rights reserved.
//

import Foundation
import UIKit

extension UIFont : ZMCompatible{}
extension ZM where Base : UIFont {
    
    /// Regular 字体，默认16号字体
    public static func fontRegular(size: CGFloat = 16) -> UIFont {
        return UIFont.init(name: "PingFangSC-Regular", size: size)!
    }
    
    /// Semibold 字体，默认16号字体
    public static func fontSemibold(size: CGFloat = 16) -> UIFont {
        return UIFont.init(name: "PingFangSC-Semibold", size: size)!
    }
    
    /// Medium 字体，默认16号字体
    public static func fontMedium(size: CGFloat = 16) -> UIFont {
        return UIFont.init(name: "PingFangSC-Medium", size: size)!
    }
}
